<template>
  <div>
     <van-nav-bar
  title="详情"

  left-arrow
  @click-left="$router.go(-1)"
/>

      <img :src="list.pic" alt="" />
      <p>{{ list.name }}</p>
      <p>{{ list.originalPrice }}</p>
    </div>
</template>
<script>
export default {
  data() {
    return {
      list: "",
    };
  },
  created() {
    this.Ulist();
  },
  methods: {
    Ulist() {
      var id = this.$route.params.id;
    //   console.log(id);
      this.$axios
        .post("https://api.it120.cc/small4/shop/goods/detail?id=" + id)
        .then((res) => {
        //   console.log(res.data.basicInfo);
          this.list = res.data.basicInfo;
        //   console.log(this.list);
        });
    },
  },
};
</script>
<style lang="scss" scoped>
img{
    width: 100px;
}
</style>